package org.example;

import com.tedu.InputField;
import lombok.Data;

/**
 * Created by Mikazuki on 2025/3/27.
 */
@Data
public class Student {
    // 生成一个标准学生类

    @InputField(title = "姓名", notNull = true, regex = "^[\\u4e00-\\u9fa5]{2,5}$", regexNotMathTitle = "姓名格式不正确")
    private String name;
    @InputField
    private int age;
    private String major;
    private String gender;
    private String grade;

    private String school;

    private String id;

    private String phone;
}
